import request from './request'

// 获得文章类型及数量
export function getArticleTypeAndAmount() {
  return request({
    url: '/getArticleTypeAndAmount',
  })
}

//  根据文章类型获取文章
export function getArticleByTag(tagId, pageNum, pageSize, ) {
  return request({
    url: '/getArticleByTag',
    params: {
      tagId,
      pageNum,
      pageSize,
    },
  })
}

//  获取推荐文章
export function getRecommendArticle(keywords, num) {
  return request({
    url: '/getRecommendArticle',
    params: {
      keywords,
      num,
    },
  })
}
